package com.xnyzc.lhy.didi.controller.checkstand;

import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.didi.entity.param.checkstand.PaymentNoticeParam;
import com.xnyzc.lhy.didi.entity.param.operation.BillRefundParam;
import com.xnyzc.lhy.didi.entity.param.operation.CloseOrderParam;
import com.xnyzc.lhy.didi.entity.param.operation.FreeChargeParam;
import com.xnyzc.lhy.didi.entity.param.order.OrderDetailParam;
import com.xnyzc.lhy.didi.entity.param.pay.PayInfo;
import com.xnyzc.lhy.didi.entity.param.synchronization.RealtimeFeeSyncParam;
import com.xnyzc.lhy.didi.service.checkstand.CheckstandService;
import com.xnyzc.lhy.didi.service.impl.checkstand.CheckstandServiceImpl;
import com.xnyzc.lhy.didi.service.operation.CustomerServiceOperationService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 收银台相关
 * </p>
 *
 * @author wangshuo
 * @since 2019-10-07
 */
@RestController
@RequestMapping("oa/didi/checkstand")
public class CheckstandServiceController {

    @Autowired
    private CheckstandService checkstandService;

    /**
     * 支付详情查询
     *
     * @param closeOrderParam
     * @return
     */
    @ApiOperation(value = "支付详情查询", notes = "支付详情查询")
    @PostMapping(value = "/getPayInfo")
    public PayInfo getPayInfo(@ApiParam(name =
            "closeOrderParam", value = "支付详情查询") @RequestBody CloseOrderParam closeOrderParam) {
        return checkstandService.getPayInfo(closeOrderParam);
    }

    /**
     * 支付通知
     *
     * @param paymentNoticeParam
     * @return
     */
    @ApiOperation(value = "支付通知", notes = "支付通知")
    @PostMapping(value = "/getPaymentNotice")
    public DiDiRv getPaymentNotice(@ApiParam(name =
            "closeOrderParam", value = "支付通知") PaymentNoticeParam paymentNoticeParam) {
        return checkstandService.getPaymentNotice(paymentNoticeParam);
    }
}
